import { Layout } from '@fl/utils/routerHelper'

const advertisingManagement: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/pages/content-center/advertising-management/material-management.vue'),
            meta: {
                noCache: true,
                title: '素材管理',
            },
            name: 'material-management',
            path: 'material-management',
        },
        {
            component: () => import('@/pages/content-center/advertising-management/advertising-group.vue'),
            meta: {
                noCache: true,
                title: '广告组',
            },
            name: 'advertising-group',
            path: 'advertising-group',
        },
        {
            component: () => import('@/pages/content-center/goods-management/goods-group.vue'),
            meta: {
                noCache: true,
                title: '商品组',
            },
            name: 'goods-group',
            path: 'goods-group',
        },
        {
            component: () => import('@/pages/content-center/page-config/index.vue'),
            meta: {
                title: '页面配置',
            },
            name: 'page-config',
            path: 'page-config',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        icon: 'i-bi:badge-ad',
        title: '广告管理',
    },
    name: 'advertising-management',
    path: 'advertising-management',
}

export default advertisingManagement
